﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 代理模式
{
    /// <summary>
    /// 代理
    /// </summary>
    internal class Proxy : IGiveGift
    {
        private Pursuit gg;

        public Proxy(SchoolGirl schoolGirl)
        {
            this.gg = new Pursuit(schoolGirl);
        }

        public void GiveDolls()
        {
            this.gg.GiveDolls();
        }

        public void GiveFlowers()
        {
            this.gg.GiveFlowers();
        }

        public void GiveChocolate()
        {
            this.gg.GiveChocolate();
        }
    }
}
